package com.zpark.harmonyos_gmd_17.slice;

import com.zpark.harmonyos_gmd_17.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Text;

public class DetailAbilitySlice extends AbilitySlice {

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_detail);

        // 获取绑定数据
        String productID = (String) intent.getParams().getParam("productID");
        // 获取Text组件
        /*Text text = (Text) findComponentById(ResourceTable.Id_product_id_text);
        text.setText(productID);*/
    }
}
